#pragma once
#include <string>
#include <vector>
#include "scanner/object.h"

namespace Pdf
{
	struct IndirectObject;

	class Encrypt
	{
	public:
				            Encrypt(Dictionary::Ptr encrypt, Array::Ptr id, const std::string &password);
		void                decrypt(IndirectObject &obj);

	private:
		std::vector<char>    fileKey;
	};
};
